package com.lance.answer.dto;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * @author yixun
 * @version 2.0.0
 * @description
 * @date 2021-05-28 22:30
 * @since 2.0.0
 */
@Data
public class QuestionAnswer implements Comparable<QuestionAnswer> {

    private String questionCode;
    /** 题目标题*/
    private String questionTitle;
    private List<Item> items;
    private List<String> answers;
    private int questionType;
    private String questionTypeDesc;
    // click send select 点击 发送  下拉
    private String answerType = "click";

    @Override
    public int compareTo(@NotNull QuestionAnswer o) {
        return Integer.compare(this.questionType,o.questionType);
    }
}
